#include "PlayerClass.h"

PlayerClass::PlayerClass(void) {
	_playerClass = DUMMY;
//	this->setBaseStats();
}

PlayerClass::PlayerClass(string playerClass) {
	if(playerClass == "MAGE") 
		_playerClass = MAGE;
	else if(playerClass == "WARRIOR") 
		_playerClass = WARRIOR;
	else if(playerClass == "GOD") 
		_playerClass = GOD;
	else 
		_playerClass = DUMMY;
//	this->setBaseStats();
}

PlayerClass::PlayerClass(const PlayerClass*& playerClass) {
	_playerClass = playerClass->_playerClass;
}

PlayerClass::~PlayerClass(void) { }

void PlayerClass::setClass(class_t playerClass) {
	_playerClass = playerClass;
//	this->setBaseStats();
}

string PlayerClass::getClassString() {
	switch(_playerClass) {
		case MAGE:		return "MAGE"; break;
		case WARRIOR:	return "WARRIOR"; break;
		case GOD:		return "GOD"; break;
		default:		return "DUMMY"; break;
	}
	return 0; // dummy return never reached
}

int PlayerClass::getClass() {
	return _playerClass;
}

//void PlayerClass::setBaseStats() {
//	switch(_playerClass) {
//	case MAGE:		setStats(15, 23, 7); break;
//	case WARRIOR:	setStats(24, 16, 5); break;
//	case GOD:		setStats(666, 666, 666); break;
//	default:		setStats(1, 1, 1);
//	}
//}
